package com.example.jpa.crud.annotation;

import java.lang.annotation.*;

import org.springframework.core.annotation.AliasFor;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Retention(RUNTIME)
@Target(value = {TYPE})
@Documented
public @interface Crud {

    @AliasFor("value")
    String name() default "";

    @AliasFor("name")
    String value() default "";

    boolean autoGenerateId() default true;

}